mkshort: Add a final stage (mkshort(,shortname)) to mkshort_from_wpt.
authoroliskoli <oliskoli>
Sun, 17 Aug 2008 16:19:00 +0000 (16:19 +0000)
committeroliskoli <oliskoli>
Sun, 17 Aug 2008 16:19:00 +0000 (16:19 +0000)
mkshort.c

index 7e26fa782ac4b9e74d7b63256dc67607417f68c0..5e417724dc21d1bfb76a1e63220a4efd7577a2ef 100644 (file)
--- a/mkshort.c
+++ b/mkshort.c
@@ -601,7 +601,10 @@ mkshort_from_wpt(short_handle h, const waypoint *wpt)
        }
 
        /* Should probably never actually happen... */
-       return NULL;
+       /* O.K.: But this can happen (waypoints transformed from trackpoints )! */
+       /*       Now we return every time a valid entity." */
+
+       return mkshort(h, wpt->shortname);
 }